package com.gengzp.common.model.message.entity;

import com.gengzp.common.model.base.entity.GenericEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @ClassName MqMessage
 * @Description
 * @Author gengzp
 * @Date 2025/6/2 20:29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MqMessage extends GenericEntity {

    @Serial
    private static final long serialVersionUID = 2300962732100754726L;

    /**
     * 关联主题 topic 名称
     */
    private String relationTopicName;

    /**
     * 消息 key
     */
    private String messageKey;

    /**
     * 消息标签
     */
    private String messageTag;

    /**
     * 消息体json
     */
    private String messageBody;

    /**
     * 是否被消费过
     * {@link com.gengzp.common.enums.YesNoEnum}
     */
    private Integer isConsumed;

}
